<?php
    header('Content-type:text/json');
    require "../connection.php";
    $id = $_POST['id'];
    $sql = "select * from goods where id=".$id;
    $result = $conn->doSql($sql);
    $imgs = $conn->doSql("select * from goods_adv_map where goods_id=".$id);
    array_push($result,$imgs);
    echo json_encode($result);



?>